//
//  GQJTextViewController.m
//  TotalDemo
//
//  Created by gujian on 16/5/24.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "GQJTextViewController.h"
#import "GQJTextView.h"
#import "HPGrowingTextView.h"

@interface GQJTextViewController ()

@end

@implementation GQJTextViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initSubViews];
}

- (void)initSubViews
{
    CGFloat height = 34.0;
    GQJTextView *textView = [[GQJTextView alloc] initWithFrame:CGRectMake(15, 120, SCREEN_WIDTH-30, height)];
    [self.view addSubview:textView];
    
    
    HPGrowingTextView *textView1 = [[HPGrowingTextView alloc] initWithFrame:CGRectMake(15, 20, SCREEN_WIDTH-30, 32)];
    textView1.placeholder = @"请输入文字";
    textView1.returnKeyType = UIReturnKeySend;
    textView1.minNumberOfLines = 1;
    textView1.maxNumberOfLines = 2;
    [textView1 setFont:[UIFont systemFontOfSize:15.0]];
    [self.view addSubview:textView1];
}

@end
